import { createApp } from 'vue'
// import App from './App.vue'  // 监听器的使用

// import App from './components/Test/App.vue' // 兄弟组件之间传递数据
// import App from './components/Test1/App.vue' // 数据共享 基于 provide 和 inject
import App from './components/Test2/App.vue' // 购物车案例
import './index.css'

import axios from 'axios'

axios.defaults.baseURL = 'http://127.0.0.1/api'
// App.config.globalProperties.$http = axios

const app = createApp(App)
app.config.globalProperties.$http = axios
app.mount('#app')
